<div class="tableToolbar">
    <div class="coll-md-8">
    </div>
    <div class="coll-md-2">
        <input type="button" class="bttn pos-left"  ng-click="openMailModal()" value="消息设置">
    </div>
</div>


<table ui-table="orderParams" >
    <thead>
    <tr>
        <th  style="text-align: left;width:10%;">

            <label class="checkbox-inline"><input type="checkbox"  ng-click="isAllCheck(master,idArry)" ng-model="master"> 全选</label>
            <button ng-click='delete()' class="btn  btn-xs" style="padding:4px 8px;">删除</button>
        </th>
        <th>提醒内容</th>
        <th>添加时间</th>
    </tr>
    </thead>
    <input type="hidden" ng-model="idArry">
    <tbody>
    <tr ng-repeat="item in orderParams.$rows">
        <td  style="text-align: left;"><input type="checkbox"  ng-checked="master"  ng-model="single"  ng-click="isCheck(item.id,single)"></td>
        <td style="text-align: left;padding-top:4px;">
            <textarea>{{item.contents}}</textarea>
        </td>
        <td>{{item.addtime | date:'y-MM-dd HH:mm:ss'}}</td>
    </tr>
    </tbody>
</table>


<modal title='消息设置' visible="mailModal">
    <form class="form-horizontal">
        <div class="form-body">
            <div class="row">
                <div class="col-md-2">
                    <div class="form-group">
                        <label class="control-label col-md-12">提醒内容：</label>
                    </div>
                </div>
                <div class="col-md-10">
                    <div class="form-group">
                        <div class="col-md-12">
                            <label class="checkbox-inline">
                                <input type="checkbox" name="content" ng-true-value="1" ng-false-value="0"  ng-model="mail.birthdayPrompt" ng-init="mail.birthdayPrompt=1">
                                客户生日提醒 </label>
                            <label class="checkbox-inline">
                                <input type="checkbox" name="content" ng-true-value="1" ng-false-value="0"  ng-model="mail.collectPrompt" ng-init="mail.collectPrompt=1">
                                客户到期提醒 </label>
                            <label class="checkbox-inline">
                                <input type="checkbox" name="content" ng-true-value="1" ng-false-value="0"  ng-model="mail.registerPrompt" ng-init="mail.registerPrompt=1">
                                推荐注册提醒 </label>
                            <label class="checkbox-inline">
                                <input type="checkbox" name="content" ng-true-value="1" ng-false-value="0"  ng-model="mail.rechargeCashPrompt" ng-init="mail.rechargeCashPrompt=1">
                                充值提现提醒 </label>
                            <label class="checkbox-inline">
                                <input type="checkbox" name="content" ng-true-value="1" ng-false-value="0"  ng-model="mail.investPrompt" ng-init="mail.investPrompt=1">
                                客户投资提醒 </label>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-2">
                    <div class="form-group">
                        <label class="control-label col-md-12">提醒方式：</label>
                    </div>
                </div>
                <div class="col-md-10">
                    <div class="form-group">
                        <div class="col-md-12">
                            <label class="checkbox-inline">
                                <input type="checkbox" name="content" ng-true-value="1" ng-false-value="0"  ng-model="mail.smsPromptType" ng-init="mail.smsPromptType=1">
                                短信提醒 </label>
                            <label class="checkbox-inline">
                                <input type="checkbox" name="content" ng-true-value="1" ng-false-value="0"  ng-model="mail.siteMailPromptType" ng-init="mail.siteMailPromptType=1">
                                站内提醒 </label>
                        </div>
                    </div>
                </div>
            </div>
            <div class="buttonArea col-md-12">
                <input type="submit" ng-click="savePrompt()" class='btn blue' value="保存设置">
            </div>
        </div>
    </form>
</modal>